# Copyright 2003 Víctor Manuel Jáquez Leal
# Distributed under the terms of the GNU General Public License v2
# $Header: /cvsroot/playerstage/code/packages/gentoo/stage-1.6.2.ebuild,v 1.1 2005/05/26 04:24:53 ceyusa Exp $
inherit eutils

DESCRIPTION="Stage simulates a population of mobile robots in 2D."
HOMEPAGE="http://playerstage.sourceforge.net"
SRC_URI="mirror://sourceforge/playerstage/stage-2.0.2.tar.bz2"

KEYWORDS="~amd64 sparc x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="doc"

DEPEND="
        >=x11-libs/gtk+-2.0
        >=sci-misc/player-1.6.5
        doc? ( app-doc/doxygen )"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/stage-2.0.2.patch
}

src_compile() {
	econf \
		|| die 
	emake || die 
}

src_install() {
	einstall || die 

	einfo "PLEASE NOTE that stage is now a player's module."
	einfo "So to run the simple world you must do:"
	einfo "$ PLAYERPATH=/usr/lib player /usr/share/stage/worlds/simple.cfg"
}
